import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'

import departmentList from "./views/OrganizationalManagement/DepartmentList.vue";
import permissionList from "./views/PermissionManagement/PermissionList.vue";
import employeeList from "./views/OrganizationalManagement/EmployeeList.vue";
import roleList from "./views/PermissionManagement/RoleList.vue";
import menuList from "./views/PermissionManagement/MenuList.vue";


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-bar-chart',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: 'Charts' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '组织结构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/departmentList', component: departmentList, name: '部门管理' },
            { path: '/employeeList', component: employeeList, name: '员工管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '权限管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/permissionList', component: permissionList, name: '权限列表' },
            { path: '/roleList', component: roleList, name: '角色管理' },
            { path: '/menuList', component: menuList, name: '菜单管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-id-card-o',
        hidden: true,
        children: [
            { path: '/404', component: NotFound, name: '404页' },
        ]
    },
];

export default routes;
